Skip to main content
Version: 3.x.x

RequestMockType


import { RequestMockType } from "@hyper-fetch/core"

Description

Defined in request/request.types.ts:296

Preview

type RequestMockType<Response> = {
config: { requestSentDuration?: number; responseDelay?: number; responseReceivedDuration?: number; status?: number };
data: Response | Response[] | () => Response;
}

Structure

{
config: {
requestSentDuration: number;
responseDelay: number;
responseReceivedDuration: number;
status: number;
};
data: Response | Response[] | () => Response;
}